class Clock:
    id: None
    price: None

    def ring(self):
        import winsound
        print(F'编号{self.id}的闹钟开始响了')
        winsound.Beep(2000, 2222)


clock1 = Clock()
clock1.id = '2505001'
clock1.ring()

clock2 = Clock()
clock2.id = '2505033'
clock2.ring()
